package com.wind.taobao.api.trade.shipping.rest
{
	import com.wind.taobao.api.IPublicAPI;
	import com.wind.taobao.core.exception.InvalidRequestParametersException;
	import com.wind.taobao.core.util.TaobaoUtils;
	import com.wind.taobao.core.webservice.TaobaoRequest;

	/**
	 * taobao.areas.get Request
	 * @author fxy
	 *
	 */
	public class AreasGetRequest extends TaobaoRequest implements IPublicAPI
	{
		public override function get method():String
		{
			return "taobao.areas.get"
		}
		/**
		 *  Y 	 需返回的字段列表.可选值:Area 结构中的所有字段;多个字段之间用","分隔.如:area_id,area_type,area_name,parent_id,zip.
		 */
		[Bindable]
		public var fields:String="area_id,area_type,area_name,parent_id,zip";

		public override function validate():void
		{
			if (!TaobaoUtils.hasValue(fields))
			{
				throw new InvalidRequestParametersException("请求参数[fields]不能为空");
			}
		}
	}
}